﻿@model List<检查页面开放.Business.App>

@{
    ViewBag.Title = "title";
    Layout = null;
    var appList = Model as List<检查页面开放.Business.App>;
}

<script src="~/Scripts/jquery-1.10.2.js"></script>
@{
    var dllGroup = appList.GroupBy(t => t.DllName);
    <span>总计：@appList.Count</span>
    foreach (var dllG in dllGroup)
    {
        <div style="font-size: 20px; font-weight: bold;">dll名称： @dllG.Key</div>
        var groupList = dllG.GroupBy(t => t.ClassName);
        var classCount = 1;
        foreach (var group in groupList)
        {
            <div style="border: solid 1px #000000; margin-top: 10px;">
                <div style="font-weight: bold; cursor: pointer;" onclick="showBkfDiv(this)">@(classCount++)类名称：@group.Key<span>展开/折叠</span></div>
                <div style=" display: none;">
                    @{
                        var a = 1;
                        foreach (var collection in group)
                        {
                            <div style="border: 1px solid #000000"><span>@(a++)、</span>@collection.MethodName</div>
                        }
                    }
                </div>
            </div>
        }
    }
   
}
<script>
    function showBkfDiv(obj) {
        $(obj).next().toggle();
    }

</script>